<div class="span-6 prepend-1 last ">
    
    <% unless logged? then %>
    <div id="join_us">
        <%= image_tag('joinus.png', :class=>'menu_icon' ) %>
        <%= link_to "Pridruži se", '/members/sign_up' %> zajednici kako bi sudjelovao u aktivnostima udruge, ili se
        <%= link_to "prijavi", new_member_session_path %> ako si član.
    </div>
    <% end %>
    <h2 class="widgettitle"><%= image_tag('black_icons/doc_new.png', :class=>'menu_icon' ) %>  Blog</h2>
    <ul class="widget">
        <% Category.all.each do |category| %>
        <li>
            <%= link_to category.name, category.url %>
        </li>
        <% end %>
    </ul>
    
    <h2 class="widgettitle"><%= image_tag('black_icons/book.png', :class=>'menu_icon' ) %> Tutoriali</h2>
    <ul class="widget">
        <li>
            <% link_to "Svi_tutorial", tutorial_categories_path %>
        </li>
        <% TutorialCategory.all.each do |tutorial| %>
        <li>
            <%= link_to tutorial.name, tutorial.url %>
        </li>
        <% end %>
    </ul>
    
    <h2 class="widgettitle"><%= image_tag('black_icons/contact_card.png', :class=>'menu_icon' ) %> Zajednica</h2>
    <ul class="widget">
        <li class="underline">
            <% @feeds.each do |feed| @feed = feed %>
            <%= render 'shared/feed_item_sidebar' %>
            <% end %>
        </li>
        <li>
            <% unless member_signed_in?  %>

            <% end %>
        </li>
    </ul>
    
    <h2 class="widgettitle"><%= image_tag('black_icons/db.png', :class=>'menu_icon' ) %> Kome dajemo hosting?</h2>
    <%= raw Widget.find(2).content %>

    <h2 class="widgettitle"><%= image_tag('black_icons/heart.png', :class=>'menu_icon' ) %> Prijatelji</h2>
    <%= raw Widget.find(1).content %>

    <div id="social_icons">
        <%= link_to image_tag('rss.png'), root_url+'feed.rss', :target => '_blank' %>
        <%= link_to image_tag('twitter.png'), 'http://twitter.com/udiphr', :target => '_blank' %>
        <%= link_to image_tag('linkedin.png'), 'http://www.linkedin.com/company/1037998?trk=pro_other_cmpy', :target => '_blank' %>
    </div>
    
    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1">
    </script>
    <fb:like-box href="http://www.facebook.com/pages/Udruga-dizajnera-i-programera/130306370350536" width="230" show_faces="true" stream="false" header="true">
    </fb:like-box>
</div>
</div>

